Optimal. Leaf size=55 \[ -\frac {\sec ^3(c+d x)}{3 a d}+\frac {\sec ^5(c+d x)}{5 a d}-\frac {\tan ^5(c+d x)}{5 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2918, 2686, 14,
2687, 30} \begin {gather*} -\frac {\tan ^5(c+d x)}{5 a d}+\frac {\sec ^5(c+d x)}{5 a d}-\frac {\sec ^3(c+d x)}{3 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2686
Rule 2687
Rule 2918
Rubi steps
\begin {align*} \int \frac {\sec (c+d x) \tan ^3(c+d x)}{a+a \sin (c+d x)} \, dx &=\frac {\int \sec ^3(c+d x) \tan ^3(c+d x) \, dx}{a}-\frac {\int \sec ^2(c+d x) \tan ^4(c+d x) \, dx}{a}\\ &=-\frac {\text {Subst}\left (\int x^4 \, dx,x,\tan (c+d x)\right )}{a d}+\frac {\text {Subst}\left (\int x^2 \left (-1+x^2\right ) \, dx,x,\sec (c+d x)\right )}{a d}\\ &=-\frac {\tan ^5(c+d x)}{5 a d}+\frac {\text {Subst}\left (\int \left (-x^2+x^4\right ) \, dx,x,\sec (c+d x)\right )}{a d}\\ &=-\frac {\sec ^3(c+d x)}{3 a d}+\frac {\sec ^5(c+d x)}{5 a d}-\frac {\tan ^5(c+d x)}{5 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 106, normalized size = 1.93 \begin {gather*} \frac {\sec ^3(c+d x) (40+66 \cos (c+d x)-192 \cos (2 (c+d x))+22 \cos (3 (c+d x))+24 \cos (4 (c+d x))+16 \sin (c+d x)+22 \sin (2 (c+d x))-48 \sin (3 (c+d x))+11 \sin (4 (c+d x)))}{960 a d (1+\sin (c+d x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(114\) vs.
\(2(49)=98\).
time = 0.20, size = 115, normalized size = 2.09
method | result | size |
risch | \(-\frac {2 i \left (8 i {\mathrm e}^{3 i \left (d x +c \right )}+9 \,{\mathrm e}^{2 i \left (d x +c \right )}+6 i {\mathrm e}^{i \left (d x +c \right )}-5 \,{\mathrm e}^{4 i \left (d x +c \right )}-3+10 i {\mathrm e}^{5 i \left (d x +c \right )}+15 \,{\mathrm e}^{6 i \left (d x +c \right )}\right )}{15 \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )^{5} \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )^{3} d a}\) | \(109\) |
norman | \(\frac {-\frac {4 \left (\tan ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d}+\frac {4}{15 a d}+\frac {8 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{15 a d}-\frac {8 \left (\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 a d}-\frac {8 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{5 a d}}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5} \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}\) | \(111\) |
derivativedivides | \(\frac {-\frac {1}{6 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}+\frac {16}{128 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-128}+\frac {2}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {1}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {2}{3 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {1}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}}{a d}\) | \(115\) |
default | \(\frac {-\frac {1}{6 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{3}}-\frac {1}{4 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}+\frac {16}{128 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )-128}+\frac {2}{5 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{5}}-\frac {1}{\left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{4}}+\frac {2}{3 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{3}}-\frac {1}{8 \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}}{a d}\) | \(115\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 234 vs.
\(2 (49) = 98\).
time = 0.29, size = 234, normalized size = 4.25 \begin {gather*} -\frac {4 \, {\left (\frac {2 \, \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {2 \, \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {6 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} - \frac {15 \, \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}} + 1\right )}}{15 \, {\left (a + \frac {2 \, a \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - \frac {2 \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} - \frac {6 \, a \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}} + \frac {6 \, a \sin \left (d x + c\right )^{5}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{5}} + \frac {2 \, a \sin \left (d x + c\right )^{6}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{6}} - \frac {2 \, a \sin \left (d x + c\right )^{7}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{7}} - \frac {a \sin \left (d x + c\right )^{8}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{8}}\right )} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 75, normalized size = 1.36 \begin {gather*} \frac {3 \, \cos \left (d x + c\right )^{4} - 9 \, \cos \left (d x + c\right )^{2} - {\left (3 \, \cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) + 4}{15 \, {\left (a d \cos \left (d x + c\right )^{3} \sin \left (d x + c\right ) + a d \cos \left (d x + c\right )^{3}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 120 vs.
\(2 (49) = 98\).
time = 0.57, size = 120, normalized size = 2.18 \begin {gather*} \frac {\frac {5 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 12 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 5\right )}}{a {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) - 1\right )}^{3}} - \frac {15 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{4} + 60 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + 10 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 20 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 7}{a {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}^{5}}}{120 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 9.86, size = 86, normalized size = 1.56 \begin {gather*} -\frac {4\,\left (15\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+6\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3+2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2-2\,\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-1\right )}{15\,a\,d\,{\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-1\right )}^3\,{\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )}^5} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________